<div class="panel panel-default">
    <ul class="nav nav-tabs" style="margin-top: 5px; padding-left: 10px;">

        <li class="{if (empty($rd) || $rd=='index')}active{/if}">
            <a href="{php echo $this->createWebUrl('sshop', array('op' => 'display'))}">
                {$submenus[$operation]['name']}列表</a>
        </li>
        <li class="{if ( $rd=='add')}active{/if}">
            <a href="{php echo $this->createWebUrl('sshop', array('op' => 'add','rd'=>'add'))}">新增 </a>
        </li>

    </ul>

    <div class="panel-body table-responsive">
        <table class="table table-hover">
            <thead class="navbar-inner">
                <tr>
                    <th style="width:5%;">ID</th>
                    <th style="width:10%;"></th>
                    <th style="width:25%;">门店名称</th>
                    <th style="width:15%;">手机号 </th>
                    <th style="width:5%;">状态</th>
                    <th style=" width:20%;">地址</th>
                    <th style="text-align:right; width:20%;">管理</th>
                </tr>
            </thead>
            <tbody>
                {loop $list $item}
                <tr>
                    <td>{$item['id']}</td>
                    <td>
                        {if $item['thumb']}
                        <img alt="{$item['shopname']}" title="{$item['shopname']}"
                            src="{php echo tomedia($item['thumb'])}" width="60" height="60" />
                        {/if}

                    </td>
                    <td>
                        <p title="{$item['shopname']}">{$item['shopname']} </p>
                        <p>管理员：{if $item['role_name']} {$item['role_name']} {else} -- {/if}</p>
                        
                    </td>
                    <td>
                        <p>{$item['telphone']} </p>
                        
                    </td>
                    <td>
                        {if $item['disabled']==1}禁用{else}启用{/if}
                    </td>
                    <td>
                        <div class="infocss" style="max-width:300px">
                            <p title="{$item['address']}">{$item['address']} </p>  
                            <p>{$item['vtags']} </p>
                           
                        </div>

                    </td>

                    <td style="text-align:right;">
                        <p>
                            <label data='{$item[' istop']}' class='label label-default 
                            {if $item['istop']==1}label-info{/if}'
                                onclick="setProperty(this,{$item['id']},'istop')">置顶</label>

                            <label data='{$item[' isyou']}' class='label label-default 
                            {if $item['isyou']==1}label-info{/if}'
                                onclick="setProperty(this,{$item['id']},'isyou')">加优</label>

                            <label data='{$item[' ischeng']}' class='label label-default 
                            {if $item['ischeng']==1}label-info{/if}'
                                onclick="setProperty(this,{$item['id']},'ischeng')">加诚</label>
                        </p>
                        <p>
                        <a href="{php echo $this->createWebUrl('sshop', array('id' => $item['id'], 'op' => 'add'))}"
                            class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="top" title="编辑">
                            <i class="fa fa-pencil"></i></a>&nbsp;&nbsp;

                        <a href="{php echo $this->createWebUrl('sshop', array('id' => $item['id'], 'op' => 'display'))}"
                            onclick="return confirm('此操作不可恢复，确认删除？');return false;" class="btn btn-default btn-sm"
                            data-toggle="tooltip" data-placement="top" title="删除">
                            <i class="fa fa-times"></i></a>
                        </p>

                    </td>

                </tr>

                {/loop}

            </tbody>

        </table>

        {$pager}

    </div>

</div>
 